package lesson007;

import cn.liontalk.lesson007.IocUtil;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;


public class LessondiBean {

    @Test
    public void diBean(){
        String beanXml = "classpath:/cn/liontalk/lesson007/diBean.xml";
        ClassPathXmlApplicationContext context = IocUtil.context(beanXml);
        System.out.println(context.getBean("diBeanByConstructor"));
        System.out.println(context.getBean("diBeanBySetter"));
    }
}
